package com.carleasoft.mps.security.permission.data;


import com.carleasoft.mps.core.user.Constants;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * <p>Description:数据权限校验注解</p>
 *
 * @author ztm
 * @since 2021-09-09
 */

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface RequiresDataPermission {

    Scope[] dataPerm() ;
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.METHOD})
    public @interface Scope {
        String method() default "";
        int scope() default Constants.DATA_SCOPE_OWNER;
    }
}
